home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3123 < prev    next >
Encoding:
Text File  |  1996-08-06  |  705 b   |  28 lines

  1. Path: stern.fokus.gmd.de!news
  2. From: Watson <sayegh@fokus.gmd.de>
  3. Newsgroups: comp.lang.c++
  4. Subject: variable string size via char[]
  5. Date: Mon, 22 Jan 1996 13:30:21 +0100
  6. Organization: GMD FOKUS - Research Institute for Open Communication Systems
  7. Message-ID: <3103835D.15A9@fokus.gmd.de>
  8. NNTP-Posting-Host: pollux.fokus.gmd.de
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0b4 (X11; I; SunOS 5.4 sun4m)
  13.  
  14. Hi there,
  15.  
  16. is this C++ expr legal?
  17.  
  18. int f() {
  19.     int x=10;
  20.     char *s = new char[x];
  21. }
  22.  
  23. Thanx in advance,
  24. -- 
  25. *    Greetinx from Watson (sayegh@fokus.gmd.de)
  26.     http://www.fokus.gmd.de/ovma/employees/sayegh/entry.html
  27.     signal(SIGSEGV,SIG_IGN);
  28.